import request from '@/utils/request'




/**查询商品SKU耗材关联列表 */
export function skuConsumableRelevanceList(params) {
  return request({
    url: '/distribution/skuConsumableRelevance/list',
    params
  })
}

/**查询sku耗材记录 */
export function getSkuConsumableRecordList(params) {
  return request({
    url: '/distribution/skuConsumablePurchase/getSkuConsumableRecordList',
    params
  })
}

/**新增商品SKU耗材采购 */
export function addSkuConsumablePurchase(data) {
  return request({
    url: '/distribution/skuConsumablePurchase',
    method: 'post',
    data: data
  })
}
// 查询商品SKU耗材列表
export function listSkuConsumable(query) {
  return request({
    url: '/distribution/skuConsumable/list',
    method: 'get',
    params: query
  })
}

// 查询商品SKU耗材详细
export function getSkuConsumable(id) {
  return request({
    url: '/distribution/skuConsumable/' + id,
    method: 'get'
  })
}

// 新增商品SKU耗材
export function addSkuConsumable(data) {
  return request({
    url: '/distribution/skuConsumable',
    method: 'post',
    data: data
  })
}

// 修改商品SKU耗材
export function updateSkuConsumable(data) {
  return request({
    url: '/distribution/skuConsumable',
    method: 'put',
    data: data
  })
}

// 删除商品SKU耗材
export function delSkuConsumable(id) {
  return request({
    url: '/distribution/skuConsumable/' + id,
    method: 'delete'
  })
}
